import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        int n = 1;
        int sum = 0;
        while (n <= 5 ) {
            int i = 1;
            int ret = 1;
            while (i <= n ) {
                ret *= i;
                i++;
            }
            sum += ret;
            n++;
        }
        System.out.println(sum);
    }
    public static void main9(String[] args) {
        int a = 1;
        int sum = 0;
        while (a <= 10){
            sum += a;
            a++;
        }
        System.out.println(sum);
    }
    public static void main8(String[] args) {
        Scanner scan = new Scanner(System.in);
        int year = scan.nextInt();

        if(year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println(year + " is LeapYear!");
        }else {
            System.out.println(year + " is not LeapYear!");
        }
    }
    public static void main7(String[] args) {
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();//输入一个整数

        if(num % 2 == 0) {
            System.out.println(num + "是偶数");
        }else{
            System.out.println(num + "是奇数");
        }
    }
    public static void main6(String[] args) {
        String str = "abc";
        switch (str) {
            case "abc":
                System.out.println("abc");
                break;
            case"124":
                System.out.println("124");
                break;
            default:
                System.out.println("输入有误");
                break;
        }
        //不能作为Switch参数的数据类型是什么？float double boolean long
//        int a = 1;
//        switch(a) {
//            case 1:
//                System.out.println(1);
//                break;
//            case 2:
//                System.out.println(2);
//                break;
//            default:
//                System.out.println("其他");
//                break;
//        }
    }
    public static void main5(String[] args) {
        int a = 9;
        if (a==8) {
            System.out.println("a == 8");
        }else if(a == 9) {
            System.out.println("a == 9");
        }else {
            System.out.println("else");
        }
    }
    public static void main4(String[] args) {
        int a = -1;
        System.out.println(a>>>1);//无符号移位
    }
    public static void main3(String[] args) {
        int a = 10;
        boolean flg = true;
        System.out.println(!false);//!布尔表达式
        System.out.println(!true);//!布尔表达式

    }
    public static void main2(String[] args) {
        //System.out.println(10<20 && (10/0)==0);

        System.out.println(10<20 || (10/0)==0);
        //                 表达式1 && 表达式2     如果表达式1为true,则不执行表达式2。如果是false执行表达式2
    }
    public static void main1(String[] args) {
        //  \"hello\"
        System.out.println("\\\"hello\\\"");

        short a = 128;//0000 0000 1000 0000

        byte b = (byte)a;//1000 0000 结果-128 发生截断了
        System.out.println(a);
        System.out.println(b);
    }
}
